package rapier.sso.core.model;

import com.baomidou.mybatisplus.annotation.TableField;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class PermissionModel {
	@ApiModelProperty(value = "主键")
    private Long id;
    
    @ApiModelProperty(value = "主键")
    private Long appId;

    @ApiModelProperty(value = "父编号,本权限可能是该父编号权限的子权限")
    private Long parentId;
    
    @ApiModelProperty(value = "父编号完整路径,/分隔符")
    private String parentIds;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "权限标记")
    private String permission;

    @ApiModelProperty(value = "资源类型")
    private String resourceType;

    @ApiModelProperty(value = "资源路径 如：/userinfo/list")
    @TableField("resourcePath")
    private String resourcePath;

    @ApiModelProperty(value = "状态,负数表明无法使用")
    private Integer status;
}
